package com.weimi.phh.base;

import android.content.Context;
import android.view.View;

/**
 * Created by lt on 2015/9/15.
 */
public abstract class DefaultHolder {
    protected Context ctx;
    protected View rootView;

    public DefaultHolder(Context ctx) {
        this.ctx = ctx;
        init();
        rootView = initView();
        initData();
    }
    protected void initData(){

    }
    protected abstract View initView();

    protected void init() {

    }
    public View getRootView() {
        return rootView;
    }
}
